package com.zabra.zl.ui.addbank.model;

import com.zabra.zl.data.BankData;
import com.zabra.zl.data.SimpleBean;
import com.zabra.zl.net.RetrofitClient;
import com.zabra.zl.ui.addbank.contract.AddBankContract;

import io.reactivex.Flowable;
import okhttp3.RequestBody;
import retrofit2.Call;

public class AddBankModel implements AddBankContract.Model {
    @Override
    public Call<BankData> getData(RequestBody body) {
        return RetrofitClient.getInstance().getApi().getBankData(body);
    }

    @Override
    public Flowable<SimpleBean> getBindData(RequestBody body) {
        return RetrofitClient.getInstance().getApi().getBindBankData(body);
    }
}
